package com.cloud.mall.model.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class AppUser implements Serializable {

	private static final long serialVersionUID = 611197991672067628L;

    private Long id;

    private String username;

    private String password;

    private String icon;

    private String email;

    private String nickName;

    private String note;

    private Date createTime;

    private Date loginTime;

    private Integer status;
	/**
	 * 状态
	 */
	private Boolean enabled;

    public Boolean getEnabled() {
        return "1".equals(getStatus())?Boolean.TRUE:Boolean.FALSE;
    }
}
